import request from '@/utils/request'

// 用电单位列表
export const getCompanyListApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/basic/energyType/getCompanyList', { params })

// 设备能耗占比饼状图
export const getProportionApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/energy/device/analysis/rate/pipe', { params })

// 设备能耗趋势
export const getEnergyTrendApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/energy/device/analysis/data/usage/line', { params })

// 设备负荷曲线-负载对比曲线（只针对电）
export const getLoadProfileApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/energy/device/analysis/data/contrast/load/line', { params })